package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.Area;
import com.ruoyi.system.mapper.AreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BusinessLineMapper;
import com.ruoyi.system.domain.BusinessLine;
import com.ruoyi.system.service.IBusinessLineService;

/**
 * 业务线Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-18
 */
@Service
public class BusinessLineServiceImpl extends ServiceImpl<BusinessLineMapper, BusinessLine> implements IBusinessLineService
{
    @Autowired
    private BusinessLineMapper businessLineMapper;

    /**
     * 查询业务线
     * 
     * @param id 业务线主键
     * @return 业务线
     */
    @Override
    public BusinessLine selectBusinessLineById(Long id)
    {
        return businessLineMapper.selectBusinessLineById(id);
    }

    /**
     * 查询业务线列表
     * 
     * @param businessLine 业务线
     * @return 业务线
     */
    @Override
    public List<BusinessLine> selectBusinessLineList(BusinessLine businessLine)
    {
        return businessLineMapper.selectBusinessLineList(businessLine);
    }

    /**
     * 新增业务线
     * 
     * @param businessLine 业务线
     * @return 结果
     */
    @Override
    public int insertBusinessLine(BusinessLine businessLine)
    {
        return businessLineMapper.insertBusinessLine(businessLine);
    }

    /**
     * 修改业务线
     * 
     * @param businessLine 业务线
     * @return 结果
     */
    @Override
    public int updateBusinessLine(BusinessLine businessLine)
    {
        return businessLineMapper.updateBusinessLine(businessLine);
    }

    /**
     * 批量删除业务线
     * 
     * @param ids 需要删除的业务线主键
     * @return 结果
     */
    @Override
    public int deleteBusinessLineByIds(Long[] ids)
    {
        return businessLineMapper.deleteBusinessLineByIds(ids);
    }

    /**
     * 删除业务线信息
     * 
     * @param id 业务线主键
     * @return 结果
     */
    @Override
    public int deleteBusinessLineById(Long id)
    {
        return businessLineMapper.deleteBusinessLineById(id);
    }
}
